/*******************************************************************************
*  file    : transformwindow.hpp
*  created : 23.06.2014
*  author  : Slyshyk Oleksiy (alexSlyshyk@gmail.com)
*******************************************************************************/

#ifndef TRANSFORMWINDOW_HPP
#define TRANSFORMWINDOW_HPP

#include <QWidget>
#include <QVariantList>

namespace Ui {
class TransformWindow;
}

class QSettings;

class TransformWindow : public QWidget
{
    Q_OBJECT

public:
    explicit TransformWindow(QWidget *parent = 0);
    ~TransformWindow();
    const QString& settingsGroup() const;
    void setSettingsGroup(const QString &settingsGroup);
    QVariantMap params() const;

public slots:
    void addTransformation(QString);
    void updatePatternList(const QStringList& list);

    void saveConfig(QSettings *s = nullptr);
    void loadConfig(QSettings* s = nullptr);
private slots:
    void onValueChanged ( double d );
signals:
    void zoneChanged(double,double);
protected:
    void changeEvent(QEvent *e);

private:
    Ui::TransformWindow *ui;
    QString settingsGroup_;
};

#endif // TRANSFORMWINDOW_HPP
